/* 职位详情页样式 */
.job-detail-page {
    padding-bottom: 80px;
}

.back-button {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    cursor: pointer;
    color: #555;
}

.back-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.job-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.job-detail-main {
    flex: 1;
}

.job-detail-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.job-detail-salary {
    color: #f57c00;
    font-size: 1.1rem;
    font-weight: 500;
}

.favorite-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.favorite-btn:hover {
    background-color: #e0e0e0;
}

.favorite-btn.active {
    background-color: rgba(245, 124, 0, 0.1);
}

.favorite-icon {
    width: 24px;
    height: 24px;
}

.company-detail {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 16px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-info-detail {
    flex: 1;
}

.company-name-detail {
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.company-location {
    font-size: 0.9rem;
    color: #666;
}

.job-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.meta-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    color: #666;
}

.detail-section {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 500;
    color: #333;
}

.section-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.section-content p {
    margin-bottom: 10px;
}

.section-content ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.section-content li {
    margin-bottom: 6px;
}

.apply-section {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    justify-content: center;
}

.apply-btn {
    width: 100%;
    max-width: 400px;
    padding: 14px 20px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.apply-btn:hover {
    background-color: #1976d2;
}

.apply-btn:active {
    transform: scale(0.98);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.file-upload {
    display: flex;
    align-items: center;
}

.file-upload input[type="file"] {
    display: none;
}

.file-label {
    padding: 10px 16px;
    background-color: #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.file-label:hover {
    background-color: #e0e0e0;
}

.file-name {
    font-size: 0.9rem;
    color: #666;
}

.primary-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.primary-btn:hover {
    background-color: #1976d2;
}

.primary-btn:active {
    transform: scale(0.98);
}

/* 成功消息样式 */
#apply-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon img {
    width: 40px;
    height: 40px;
}

#apply-success h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #4caf50;
}

#apply-success p {
    color: #666;
    margin-bottom: 20px;
}

/* 加载动画样式 */
#apply-loading {
    text-align: center;
    padding: 30px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(30, 136, 229, 0.2);
    border-top: 4px solid #1e88e5;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 登录提示样式 */
#login-required {
    text-align: center;
    padding: 20px 0;
}

#login-required p {
    margin-bottom: 20px;
    color: #666;
}

/* 媒体查询 */
@media (min-width: 768px) {
    .apply-section {
        padding: 16px 0;
    }
    
    .apply-btn {
        max-width: 400px;
    }
} 